// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class OneNetMsg : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<OneNetMsg, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public int? type { get; set; }
        public int? dev_id { get; set; }
        public string ds_id { get; set; }
        public string at { get; set; }
        public string value { get; set; }
        public int? status { get; set; }
        public int? login_type { get; set; }
        public int? cmd_type { get; set; }
        public string cmd_id { get; set; }
        public string ProductName { get; set; }
        public string AppId { get; set; }
        public string Appkey { get; set; }
        public string cmd_id_Tc { get; set; }
        public DateTime? dtOccur { get; set; }
        public bool? direction { get; set; }
        public string cmdStr { get; set; }
        public string cmdRetStr { get; set; }
        public int? cmdQos { get; set; }
        public int? cmdTimeout { get; set; }
        public int? cmdStatus { get; set; }
        public int? cmdTryTimes { get; set; }
        public int? cmdTryTryTimes { get; set; }
        public bool? cmdSendCheckOnline { get; set; }
        public DateTime? cmdAddTime { get; set; }
        public DateTime? cmdDeliverTime { get; set; }
        public DateTime? cmdResponseTime { get; set; }
        public string dtuId { get; set; }
    
        public void Configure(EntityTypeBuilder<OneNetMsg> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.AppId).HasMaxLength(20);

                entityBuilder.Property(e => e.Appkey).HasMaxLength(100);

                entityBuilder.Property(e => e.ProductName).HasMaxLength(200);

                entityBuilder.Property(e => e.at).HasMaxLength(50);

                entityBuilder.Property(e => e.cmdAddTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.cmdDeliverTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.cmdResponseTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.cmd_id).HasMaxLength(50);

                entityBuilder.Property(e => e.cmd_id_Tc).HasMaxLength(100);

                entityBuilder.Property(e => e.ds_id).HasMaxLength(200);

                entityBuilder.Property(e => e.dtOccur).HasColumnType("datetime");

                entityBuilder.Property(e => e.dtuId).HasMaxLength(50);
        }

    }
}

